package com.wyt.pojo;

import lombok.Data;

@Data
public class NewUser {
    private String id;
    private String name;
    private String limit;
    private String password;
    private String age;
    private Integer book1Id;
    private Integer book2Id;

    public NewUser() {
    }

    public NewUser(String id, String name, Integer limit, String password, String age, Integer book1Id, Integer book2Id) {
        this.id = id;
        this.name = name;
        if (limit==1){
            this.limit="管理员";
        }else {
            this.limit="学生";
        }
        this.password = password;
        this.age = age;
        this.book1Id = book1Id;
        this.book2Id = book2Id;
    }

}
